home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / etc / acpi / resume.d / 35-modules-load.sh < prev    next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  2006-10-15  |  523 b   |  22 lines

  1. #!/bin/sh
  2.  
  3. # Increase the firmware loading timeout while we're doing this
  4. # Otherwise, swap thrash tends to lead to failure to start
  5. if [ -f /sys/class/firmware/timeout ]; then
  6.     timeout=`cat /sys/class/firmware/timeout`
  7.     echo 100 >/sys/class/firmware/timeout
  8. fi
  9.  
  10. # Load any drivers that we removed
  11. for x in $MODULES; do
  12.     modprobe $x;
  13. done
  14.  
  15. # And reset the firmware timeout
  16. if [ -f /sys/class/firmware/timeout ]; then
  17.     echo $timeout >/sys/class/firmware/timeout
  18. fi
  19.  
  20. # And bring back PCMCIA code
  21. pccardctl insert
  22.